<? if(!defined('IN_DISCUZ')) exit('Access Denied'); 
0
|| checktplrefresh('/home/tfbjcc/public_html/utopia/bbs/././templates/default/memcp_profile.htm', '/home/tfbjcc/public_html/utopia/bbs/././templates/default/header.htm', 1226906669, '1', './templates/default')
|| checktplrefresh('/home/tfbjcc/public_html/utopia/bbs/././templates/default/memcp_profile.htm', '/home/tfbjcc/public_html/utopia/bbs/././templates/default/seccheck.htm', 1226906669, '1', './templates/default')
|| checktplrefresh('/home/tfbjcc/public_html/utopia/bbs/././templates/default/memcp_profile.htm', '/home/tfbjcc/public_html/utopia/bbs/././templates/default/personal_navbar.htm', 1226906669, '1', './templates/default')
|| checktplrefresh('/home/tfbjcc/public_html/utopia/bbs/././templates/default/memcp_profile.htm', '/home/tfbjcc/public_html/utopia/bbs/././templates/default/footer.htm', 1226906669, '1', './templates/default')
|| checktplrefresh('/home/tfbjcc/public_html/utopia/bbs/././templates/default/memcp_profile.htm', '/home/tfbjcc/public_html/utopia/bbs/././templates/default/jsmenu.htm', 1226906669, '1', './templates/default')
;?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=<?=$charset?>" />
<title><?=$navtitle?> <?=$bbname?> <?=$seotitle?> - Powered by Discuz!</title>
<?=$seohead?>
<meta name="keywords" content="<?=$metakeywords?><?=$seokeywords?>" />
<meta name="description" content="<?=$metadescription?> <?=$bbname?> <?=$seodescription?> - Discuz! Board" />
<meta name="generator" content="Discuz! <?=$version?>" />
<meta name="author" content="Discuz! Team and Comsenz UI Team" />
<meta name="copyright" content="2001-2008 Comsenz Inc." />
<meta name="MSSmartTagsPreventParsing" content="True" />
<meta http-equiv="MSThemeCompatible" content="Yes" />
<link rel="archives" title="<?=$bbname?>" href="<?=$boardurl?>archiver/" />
<?=$rsshead?>
<?=$extrahead?>
<? if(CURSCRIPT == 'viewthread') { ?>
	<link rel="stylesheet" type="text/css" href="forumdata/cache/style_<?=STYLEID?>_viewthread.css" />
	<? if($thread['special']) { ?>
		<link rel="stylesheet" type="text/css" href="forumdata/cache/style_<?=STYLEID?>_special.css" />
	<? } } elseif(CURSCRIPT == 'post') { ?>
	<link rel="stylesheet" type="text/css" href="forumdata/cache/style_<?=STYLEID?>_editor.css" />
<? } ?>
<link rel="stylesheet" type="text/css" href="forumdata/cache/style_<?=STYLEID?>_common.css" />
<script type="text/javascript">
	var discuz_uid = <?=$discuz_uid?>;var IMGDIR = '<?=IMGDIR?>';var attackevasive = '<?=$attackevasive?>';var gid = 0;var STYLEID = '<?=STYLEID?>';
	<? if(in_array(CURSCRIPT, array('viewthread', 'forumdisplay'))) { ?>gid = parseInt('<?=$thisgid?>');<? } elseif(CURSCRIPT == 'index') { ?>gid = parseInt('<?=$gid?>');<? } ?>var fid = parseInt('<?=$fid?>');var tid = parseInt('<?=$tid?>');
</script>
<script src="include/javascript/common.js" type="text/javascript"></script>
</head>

<body onkeydown="if(event.keyCode==27) return false;">

	<div id="append_parent"></div><div id="ajaxwaitid"></div>
	<div class="wrap">
		<div id="header">
			<h2><a href="<?=$indexname?>" title="<?=$bbname?>"><?=BOARDLOGO?></a></h2>
			<div id="ad_headerbanner"><? if($admode && empty($insenz['hardadstatus']) && !empty($advlist['headerbanner'])) { ?><?=$advlist['headerbanner']?><? } ?></div>
		</div>
		<div id="menu">
			<span class="avataonline">
			<? if($discuz_uid) { ?>
				<cite><a class="dropmenu" id="viewpro" onmouseover="showMenu(this.id)"><?=$discuz_userss?></a></cite>
				<a href="<?=$link_logout?>">退出</a>
			<? } elseif(!empty($_DCOOKIE['loginuser'])) { ?>
				<cite><a id="loginuser" class="dropmenu"><?=$_DCOOKIE['loginuser']?></a></cite>
				<a href="<?=$link_login?>">激活</a>
				<a href="<?=$link_logout?>">退出</a>
			<? } else { ?>
				<a href="<?=$link_register?>"><?=$reglinkname?></a>
				<a href="<?=$link_login?>">登录</a>
			<? } ?>
			</span>
		<? if($_DCACHE['settings']['frameon'] > 0) { ?>
			<span class="frameswitch">
			<script type="text/javascript">
			if(top == self) {
			<? if(($_DCACHE['settings']['frameon'] == 2 && !defined('CACHE_FILE') && in_array(CURSCRIPT, array('index', 'forumdisplay', 'viewthread')) && (($_DCOOKIE['frameon'] == 'yes' && $_GET['frameon'] != 'no') || (empty($_DCOOKIE['frameon']) && empty($_GET['frameon']))))) { ?>
				top.location = 'frame.php?frameon=yes&referer='+escape(self.location);
			<? } ?>
				document.write('<a href="frame.php?frameon=yes" target="_top" class="frameon">分栏模式<\/a>');
			} else {
				document.write('<a href="frame.php?frameon=no" target="_top" class="frameoff">平板模式<\/a>');
			}
			</script>
			</span>
		<? } ?>
			<ul>
			<? if($discuz_uid) { ?><li><a href="###" class="notabs" id="pmnotice" onclick="pmwin('open')"><? if(!$newpm) { ?>短消息<? } else { ?><font style="color:#FF0000">您有新短消息</font><? if($pmsound) { ?><bgsound src="images/sound/pm_<?=$pmsound?>.wav" /><? } } ?></a></li><? } ?>
			<? if($memliststatus) { ?><li<? if($BASESCRIPT == 'member.php') { ?> class="current"<? } ?>><a href="member.php?action=list">会员</a></li><? } ?>
			<? if($allowsearch || $qihoo['status']) { ?><li<? if($BASESCRIPT == 'search.php') { ?> class="current"<? } ?>><a href="search.php<? if(!empty($fid)) { ?>?srchfid=<?=$fid?><? } ?>">搜索</a></li><? } ?>
			<? if($tagstatus) { ?><li<? if($BASESCRIPT == 'tag.php') { ?> class="current"<? } ?>><a href="tag.php">标签</a></li><? } ?>
			<? if(!empty($plugins['links'])) { if(is_array($plugins['links'])) { foreach($plugins['links'] as $module) { ?>						<? if(!$module['adminid'] || ($module['adminid'] && $adminid > 0 && $module['adminid'] >= $adminid)) { ?><li><?=$module['url']?></li><? } ?>
				<? } } } ?>
			<? if($discuz_uid) { ?>
				<? if($jsmenu['4']) { ?><li id="my" class="dropmenu<? if($BASESCRIPT == 'my.php') { ?> current<? } ?>" onmouseover="showMenu(this.id)"><a href="my.php">我的</a></li><? } else { ?><li<? if($BASESCRIPT == 'my.php' && $item == 'threads') { ?> class="current"<? } ?>><a href="my.php?item=threads">我的话题</a></li><li<? if($BASESCRIPT == 'my.php' && $item == 'grouppermission') { ?> class="current"<? } ?>><a href="my.php?item=grouppermission">我的权限</a></li><? } ?>
				<? if($jsmenu['2']) { ?><li id="memcp" class="dropmenu<? if($BASESCRIPT == 'memcp.php') { ?> current<? } ?>" onmouseover="showMenu(this.id)"><a href="memcp.php">控制面板</a></li><? } else { ?><li<? if($BASESCRIPT == 'memcp.php') { ?> class="current"<? } ?>><a href="memcp.php">控制面板</a></li><? } ?>
				<? if($regstatus > 1 && $allowinvite) { ?><li<? if($BASESCRIPT == 'invite.php') { ?> class="current"<? } ?>><a href="invite.php">邀请注册</a></li><? } ?>
				<? if($magicstatus) { ?><li<? if($BASESCRIPT == 'magic.php') { ?> class="current"<? } ?>><a href="magic.php">道具</a></li><? } ?>
			<? } ?>
			<? if(!empty($plugins['jsmenu'])) { ?><li id="plugin" class="dropmenu" onmouseover="showMenu(this.id)"><a href="#"><?=$pluginjsmenu?></a></li><? } ?>
			<? if($allowviewstats) { if(!empty($jsmenu['3'])) { ?><li id="stats" class="dropmenu<? if($BASESCRIPT == 'stats.php') { ?> current<? } ?>" onmouseover="showMenu(this.id)"><a href="stats.php">统计</a></li><? } else { ?><li<? if($BASESCRIPT == 'stats.php') { ?> class="current"<? } ?>><a href="stats.php">统计</a></li><? } } if(is_array($ucapp)) { foreach($ucapp as $app) { ?>					<? if($app['url']) { ?><li><a href="<?=$app['url']?>" target="_blank"><?=$app['name']?></a></li><? } ?>
			<? } } if($discuz_uid && $adminid == 1) { ?><li><a href="admincp.php" target="_blank">系统设置</a></li><? } ?>
			<? if($discuz_uid && $adminid > 1) { ?><li><a href="modcp.php?fid=<?=$fid?>" target="_blank">版主管理面板</a></li><? } ?>
				<li<? if($BASESCRIPT == 'faq.php') { ?> class="current"<? } ?>><a href="faq.php">帮助</a></li>
			</ul>
		</div><div class="container">
	<div id="foruminfo">
		<div id="nav"><a href="<?=$indexname?>"><?=$bbname?></a> &raquo; 编辑个人资料</div>
	</div>
	<div class="content">

<script src="include/javascript/calendar.js" type="text/javascript"></script>
<script src="include/javascript/bbcode.js" type="text/javascript"></script>
<script type="text/javascript">
var charset = '<?=$charset?>';
var maxsigsize = parseInt('<?=$maxsigsize?>');
var maxbiosize = parseInt('<?=$maxbiosize?>');
var maxbiotradesize = parseInt('<?=$maxbiotradesize?>');
var allowhtml = 0;
var forumallowhtml = 0;
var allowsmilies = 0;
var allowbbcode = 0;
var allowimgcode = 0;
var allowbiobbcode = parseInt('<?=$allowbiobbcode?>');
var allowbioimgcode = parseInt('<?=$allowbioimgcode?>');
var allowsigbbcode = parseInt('<?=$allowsigbbcode?>');
var allowsigimgcode = parseInt('<?=$allowsigimgcode?>');

function parseurl(str, mode) {
	str = str.replace(/([^>=\]"'\/]|^)((((https?|ftp):\/\/)|www\.)([\w\-]+\.)*[\w\-\u4e00-\u9fa5]+\.([\.a-zA-Z0-9]+|\u4E2D\u56FD|\u7F51\u7EDC|\u516C\u53F8)((\?|\/|:)+[\w\.\/=\?%\-&~`@':+!]*)+\.(jpg|gif|png|bmp))/ig, mode == 'html' ? '$1<img src="$2" border="0">' : '$1[img]$2[/img]');
	str = str.replace(/([^>=\]"'\/@]|^)((((https?|ftp|gopher|news|telnet|rtsp|mms|callto|bctp|ed2k):\/\/)|www\.)([\w\-]+\.)*[:\.@\-\w\u4e00-\u9fa5]+\.([\.a-zA-Z0-9]+|\u4E2D\u56FD|\u7F51\u7EDC|\u516C\u53F8)((\?|\/|:)+[\w\.\/=\?%\-&~`@':+!#]*)*)/ig, mode == 'html' ? '$1<a href="$2" target="_blank">$2</a>' : '$1[url]$2[/url]');
	str = str.replace(/([^\w>=\]:"'\.\/]|^)(([\-\.\w]+@[\.\-\w]+(\.\w+)+))/ig, mode == 'html' ? '$1<a href="mailto:$2">$2</a>' : '$1[email]$2[/email]');
	return str;
}

function validate(theform) {
	<? if($typeid == 4) { ?>
		<? if($maxsigsize) { ?>
		if(mb_strlen(theform.signaturenew.value) > maxsigsize) {
			alert('您的签名长度超过 <?=$maxsigsize?> 字符的限制，请返回修改。');
			return false;
		}
		<? } ?>
		if(mb_strlen(theform.bionew.value) > maxbiosize) {
			alert('您的自我介绍长度超过 <?=$maxbiosize?> 字符的限制，请返回修改。');
			return false;
		}
		if(mb_strlen(theform.biotradenew.value) > maxbiotradesize) {
			alert('您的店铺介绍长度超过 <?=$maxbiotradesize?> 字符的限制，请返回修改。');
			return false;
		}
	<? } ?>
	return true;
}

function updateavatar() {
	$('avatar').src='<? echo discuz_uc_avatar($discuz_uid, 'middle', TRUE); ?>&random=1'+Math.random();
}

</script>
<form name="reg" method="post" action="memcp.php?action=profile&amp;typeid=<?=$typeid?>" onSubmit="return validate(this)">
<input type="hidden" name="formhash" value="<?=FORMHASH?>" />
		<div class="mainbox formbox">
			<h1>编辑个人资料</h1>
			<ul class="tabs <? if($typeid==3) { ?>headertabs<? } ?>">
				<li<? if($typeid==1) { ?> class="current"<? } ?>><a href="memcp.php?action=profile&amp;typeid=1">论坛登录</a></li>
				<li<? if($typeid==2) { ?> class="current"<? } ?>><a href="memcp.php?action=profile&amp;typeid=2">基本资料</a></li>
				<? if(!empty($_DCACHE['fields_required']) || !empty($_DCACHE['fields_optional'])) { ?>
					<li<? if($typeid==3) { ?> class="current"<? } ?>><a href="memcp.php?action=profile&amp;typeid=3">扩展资料</a></li>
				<? } ?>
				<li<? if($typeid==4) { ?> class="current"<? } ?>><a href="memcp.php?action=profile&amp;typeid=4">个性化资料</a></li>
				<li<? if($typeid==5) { ?> class="current"<? } ?>><a href="memcp.php?action=profile&amp;typeid=5">论坛选项</a></li>
				<li<? if($typeid==6) { ?> class="current"<? } ?>><a href="memcp.php?action=profile&amp;typeid=6">上传头像</a></li>
			</ul>
<table summary="编辑个人资料" cellspacing="0" cellpadding="0"><script type="text/javascript">
function updateseccode(op) {
	if(isUndefined(op)) {
		var x = new Ajax();
		x.get('ajax.php?action=updateseccode&inajax=1', function(s) {
			$('seccodeimage').innerHTML = s;
		});
	} else {
		window.document.seccodeplayer.SetVariable("isPlay", "1");
	}
}

function updatesecqaa() {
	var x = new Ajax();
	x.get('ajax.php?action=updatesecqaa&inajax=1', function(s) {
		$('secquestion').innerHTML = s;
	});
}
</script>

<? if($seccodecheck) { ?>
	<tr>
	<th><label for="seccodeverify">验证码</label></th>
	<td>
		<div id="seccodeimage"></div><em class="tips" ><? if($seccodedata['type'] == 2) { ?>请确认您的浏览器支持 Flash 的显示，如果您无法识别证码，请点<a href="###" onclick="updateseccode()">这里</a>更换<? } elseif($seccodedata['type'] == 3) { ?>请确认您的浏览器支持 Flash 的显示并且能够听到声音<? } elseif($seccodedata['animator'] == 1) { ?>请确认您的浏览器支持动画的显示，如果您无法识别验证码，请点图片更换<? } else { ?>如果您无法识别验证码，请点图片更换<? } ?></em><br />
		<input type="text"<? if(!$seccodedata['noclick']) { ?> onfocus="updateseccode();this.onfocus = null"<? } ?> id="seccodeverify" name="seccodeverify" onBlur="checkseccode()" size="8" maxlength="4" tabindex="1" />
		<span id="checkseccodeverify">&nbsp;<? if(!$seccodedata['noclick']) { ?><strong>点击输入框显示验证码</strong><? } ?></span>
	</td>
	</tr>
	<? if($seccodedata['noclick']) { ?>
		<script type="text/javascript">
		updateseccode();
		</script>
	<? } } if($secqaacheck) { ?>
	<tr>
	<th>验证问答</th>
	<td>
		<div id="secquestion"></div><input type="text" name="secanswer" onBlur="checksecanswer()" size="25" maxlength="50" tabindex="2" />
		<span id="checksecanswer">&nbsp;</span>
	</td>
	</tr>
	<script type="text/javascript">
	<? if(($attackevasive & 1) && $seccodecheck) { ?>
		setTimeout("updatesecqaa()", 2001);
	<? } else { ?>
		updatesecqaa();
	<? } ?>
	</script>
<? } ?>

<script type="text/javascript">
var profile_seccode_invalid = '验证码输入错误，请重新填写。';
var profile_secanswer_invalid = '验证问答回答错误，请重新填写。';
var lastseccode = lastsecanswer = '';
function checkseccode() {
	var seccodeverify = $('seccodeverify').value;
	if(seccodeverify == lastseccode) {
		return;
	} else {
		lastseccode = seccodeverify;
	}
	var cs = $('checkseccodeverify');
	<? if($seccodedata['type'] != 1) { ?>
		if(!(/[0-9A-Za-z]{4}/.test(seccodeverify))) {
			warning(cs, profile_seccode_invalid);
			return;
		}
	<? } else { ?>
		if(seccodeverify.length != 2) {
			warning(cs, profile_seccode_invalid);
			return;
		}
	<? } ?>
	ajaxresponse('checkseccodeverify', 'action=checkseccode&seccodeverify=' + (is_ie && document.charset == 'utf-8' ? encodeURIComponent(seccodeverify) : seccodeverify));
}
function checksecanswer() {
        var secanswer = $('secanswer').value;
	if(secanswer == lastsecanswer) {
		return;
	} else {
		lastsecanswer = secanswer;
	}
	ajaxresponse('checksecanswer', 'action=checksecanswer&secanswer=' + (is_ie && document.charset == 'utf-8' ? encodeURIComponent(secanswer) : secanswer));
}
function ajaxresponse(objname, data) {
	var x = new Ajax('XML', objname);
	x.get('ajax.php?inajax=1&' + data, function(s){
	        var obj = $(objname);
	        if(s == 'succeed') {
	        	obj.style.display = '';
	                obj.innerHTML = '<img src="<?=IMGDIR?>/check_right.gif" width="13" height="13">';
			obj.className = "warning";
		} else {
			warning(obj, s);
		}
	});
}
function warning(obj, msg) {
	if((ton = obj.id.substr(5, obj.id.length)) != 'password2') {
		$(ton).select();
	}
	obj.style.display = '';
	obj.innerHTML = '<img src="<?=IMGDIR?>/check_error.gif" width="13" height="13"> &nbsp; ' + msg;
	obj.className = "warning";
}
</script><? if($typeid == 1) { ?>

	<tr>
		<th><label for="oldpassword">原密码</label></th>
		<td><input type="password" name="oldpassword" id="oldpassword" size="25" /> 您必须填写原密码才能修改下面的资料</td>
	</tr>

	<tr>
		<th><label for="newpassword">新密码</label></th>
		<td><input type="password" name="newpassword" id="newpassword" size="25" /></td>
	</tr>

	<tr>
		<th><label for="newpassword2">确认新密码</label></th>
		<td><input type="password" name="newpassword2" id="newpassword2" size="25" /></td>
	</tr>

	<tr>
		<th><label for="emailnew">Email</label></th>
		<td><input type="text" name="emailnew" id="emailnew" size="25" value="<?=$member['email']?>" />
		<? if($regverify == 1 && (($grouptype == 'member' && $adminid == 0) && $groupid == 8)) { ?> <em>!如更改地址，系统将修改您的密码并重新验证其有效性，请慎用</em><? } ?>
	</td>
	</tr>

	<tr>
		<th><label for="questionidnew">安全提问</label></th>
		<td><select name="questionidnew" id="questionidnew">
		<? if($discuz_secques) { ?><option value="-1">保持原有的安全提问和答案</option><? } ?>
		<option value="0">无安全提问</option>
		<option value="1">母亲的名字</option>
		<option value="2">爷爷的名字</option>
		<option value="3">父亲出生的城市</option>
		<option value="4">您其中一位老师的名字</option>
		<option value="5">您个人计算机的型号</option>
		<option value="6">您最喜欢的餐馆名称</option>
		<option value="7">驾驶执照的最后四位数字</option>
		</select> <em>如果您启用安全提问，登录时需填入相应的项目才能登录</em>
		</td>
	</tr>

	<tr>
		<th><label for="answernew">回答</label></th>
		<td><input type="text" name="answernew" id="answernew" size="25" /> <em>如您设置新的安全提问，请在此输入答案</em></td>
	</tr>

<? } elseif($typeid == 2) { ?>

	<? if($allownickname) { ?>
		<tr>
		<th><label for="nicknamenew">昵称</label></th>
		<td><input type="text" name="nicknamenew" id="nicknamenew" size="25" value="<?=$member['nickname']?>" /></td>
		</tr>
	<? } ?>

	<? if($allowcstatus) { ?>
		<tr>
		<th><label for="cstatusnew">自定义头衔</label></th>
		<td>
		<input type="text" name="cstatusnew" id="cstatusnew" size="25" value="<?=$member['customstatus']?>" /></td>
		</tr>
	<? } ?>

	<tr>
	<th>性别</th>
	<td>
	<label><input class="radio" type="radio" name="gendernew" value="1" <?=$gendercheck['1']?> /> 男 &nbsp;<label>
	<label><input class="radio" type="radio" name="gendernew" value="2" <?=$gendercheck['2']?> /> 女 &nbsp;</label>
	<label><input class="radio" type="radio" name="gendernew" value="0" <?=$gendercheck['0']?> /> 保密</label>
	</td></tr>

	<tr>
	<th><label for="bdaynew">生日</label></th>
	<td><input type="text" name="bdaynew" id="bdaynew" size="25" onclick="showcalendar(event, this)" onfocus="showcalendar(event, this);if(this.value=='0000-00-00')this.value=''" value="<?=$member['bday']?>" /></td>
	</tr>

	<tr>
	<th><label for="locationnew">来自</label></th>
	<td><input type="text" name="locationnew" id="locationnew" size="25" value="<?=$member['location']?>" /></td>
	</tr>

	<tr>
	<th><label for="sitenew">个人网站</label></th>
	<td><input type="text" name="sitenew" id="sitenew" size="25" value="<?=$member['site']?>" /></td>
	</tr>

	<tr>
	<th><label for="qqnew">QQ</label></th>
	<td><input type="text" name="qqnew" id="qqnew" size="25" value="<?=$member['qq']?>" /></td>
	</tr>

	<tr>
	<th><label for="icqnew">ICQ</label></th>
	<td><input type="text" name="icqnew" id="icqnew" size="25" value="<?=$member['icq']?>" /></td>
	</tr>

	<tr>
	<th><label for="yahoonew">Yahoo</label></th>
	<td><input type="text" name="yahoonew" id="yahoonew" size="25" value="<?=$member['yahoo']?>" /></td>
	</tr>

	<tr>
	<th><label for="msnnew">MSN</label></th>
	<td><input type="text" name="msnnew" id="msnnew" size="25" value="<?=$member['msn']?>" />&nbsp;&nbsp;<a href="http://settings.messenger.live.com/applications/websignup.aspx?returnurl=<?=$boardurl?>memcp.php?action=profile&amp;privacyurl=http://privacy.microsoft.com/zh-cn/default.aspx" target="_blank">接收MSN隐私协议</a></td>
	</tr>

	<tr>
	<th><label for="taobaonew">阿里旺旺</label></th>
	<td><input type="text" name="taobaonew" id="taobaonew" size="25" value="<?=$member['taobao']?>" /></td>
	</tr>

	<tr>
	<th><label for="alipaynew">支付宝账号</label></th>
	<td><input type="text" name="alipaynew" id="alipaynew" size="25" value="<?=$member['alipay']?>" /></td>
	</tr>

<? } elseif($typeid == 3 && (!empty($_DCACHE['fields_required']) || !empty($_DCACHE['fields_optional']))) { ?>

	<? if($_DCACHE['fields_required']) { ?>
		<thead class="separation">
		<tr>
		<td colspan="2">基本信息 ( * 为必填项)</td>
		</tr>
		</thead><? if(is_array($_DCACHE['fields_required'])) { foreach($_DCACHE['fields_required'] as $field) { ?>			<tr>
			<th><?=$field['title']?><? if($field['description']) { ?><br /><em><?=$field['description']?></em><? } ?></th>
			<td>
			<? if($field['selective']) { ?>
				<select name="field_<?=$field['fieldid']?>new" <? if($member['field_'.$field['fieldid']] && $field['unchangeable']) { ?>disabled<? } ?>>
				<option value="">- 请选择 -</option><? if(is_array($field['choices'])) { foreach($field['choices'] as $index => $choice) { ?><option value="<?=$index?>" <? if($index == $member['field_'.$field['fieldid']]) { ?>selected="selected"<? } ?>><?=$choice?></option>
				<? } } ?></select>
			<? } else { ?>
				<input type="text" name="field_<?=$field['fieldid']?>new" size="25" value="<?=$member['field_'.$field['fieldid']]?>" <? if($member['field_'.$field['fieldid']] && $field['unchangeable']) { ?>disabled<? } ?> />
			<? } ?>
			<? if($field['unchangeable']) { ?>&nbsp;<em>请认真填写本项目，一旦确定将不可修改</em><? } ?>
			</td></tr><? } } } ?>

	<? if($_DCACHE['fields_optional']) { ?>
		<thead class="separation">
		<tr>
		<td colspan="2">扩展信息</td>
		</tr>
		</thead><? if(is_array($_DCACHE['fields_optional'])) { foreach($_DCACHE['fields_optional'] as $field) { ?>			<tr>
			<th><label for="field_<?=$field['fieldid']?>new"><?=$field['title']?><? if($field['description']) { ?><br /><em><?=$field['description']?></em><? } ?></label></th>
			<td>
			<? if($field['selective']) { ?>
				<select name="field_<?=$field['fieldid']?>new" id="field_<?=$field['fieldid']?>new" <? if($member['field_'.$field['fieldid']] && $field['unchangeable']) { ?>disabled<? } ?>>
				<option value="">- 请选择 -</option><? if(is_array($field['choices'])) { foreach($field['choices'] as $index => $choice) { ?><option value="<?=$index?>" <? if($index == $member['field_'.$field['fieldid']]) { ?>selected="selected"<? } ?>><?=$choice?></option>
				<? } } ?></select>
			<? } else { ?>
				<input type="text" name="field_<?=$field['fieldid']?>new" size="25" value="<?=$member['field_'.$field['fieldid']]?>" <? if($member['field_'.$field['fieldid']] && $field['unchangeable']) { ?>disabled<? } ?> />
			<? } ?>
			<? if($field['unchangeable']) { ?>&nbsp;<em>请认真填写本项目，一旦确定将不可修改</em><? } ?>
			</td></tr><? } } } } elseif($typeid == 4) { ?>

	<tr>
	<th valign="top"><label for="bionew">自我介绍 (<?=$maxbiosize?> 字节以内)<br /><em>不支持自定义 Discuz! 代码<br /><br />
	<a href="faq.php?action=message&amp;id=18" target="_blank">Discuz!代码</a> <b><? if($allowbiobbcode) { ?>可用<? } else { ?>禁用<? } ?></b><br />
	[img] 代码 <b><? if($allowbioimgcode) { ?>可用<? } else { ?>禁用<? } ?></b><br /><br />
	<a href="###" onclick="allowbbcode = allowbiobbcode;allowimgcode = allowbioimgcode;$('biopreview').innerHTML = bbcode2html($('bionew').value)">预览</a>
	</em></label></th>
	<td><div id="biopreview"></div><textarea rows="8" cols="30" style="width: 380px" id="bionew" name="bionew"><?=$member['bio']?></textarea>
	</td>
	</tr>

	<tr>
	<th valign="top"><label for="biotradenew">店铺介绍 (<?=$maxbiotradesize?> 字节以内)<br /><em>不支持自定义 Discuz! 代码<br /><br />
	<a href="faq.php?action=message&amp;id=18" target="_blank">Discuz!代码</a> <b>可用</b><br />
	[img] 代码 <b>可用</b><br /><br />
	<a href="###" onclick="allowbbcode = 1;allowimgcode = 1;$('biotradepreview').innerHTML = bbcode2html($('biotradenew').value)">预览</a>
	</em></label></th>
	<td><div id="biotradepreview"></div><textarea rows="8" cols="30" style="width: 380px" id="biotradenew" name="biotradenew"><?=$member['biotrade']?></textarea>
	</td>
	</tr>

	<? if($maxsigsize) { ?>
		<tr>
		<th valign="top"><label for="signaturenew">个人签名 (<?=$maxsigsize?> 字节以内)<br /><em>不支持自定义 Discuz! 代码</em><br /><br />
		<em>
		<a href="faq.php?action=message&amp;id=18" target="_blank">Discuz!代码</a><b><? if($allowsigbbcode) { ?>可用<? } else { ?>禁用<? } ?></b><br />
		[img] 代码 <b><? if($allowsigimgcode) { ?>可用<? } else { ?>禁用<? } ?></b><br /><br />
		<a href="###" onclick="allowbbcode = allowsigbbcode;allowimgcode = allowsigimgcode;$('signaturepreview').innerHTML = bbcode2html($('signaturenew').value)">预览</a>
		</em></label></th>
		<td><div id="signaturepreview"></div><textarea rows="8" cols="30" style="width: 380px" id="signaturenew" name="signaturenew"><?=$member['signature']?></textarea>
		</td>
		</tr>
	<? } } elseif($typeid == 5) { ?>

	<tr>
	<th>界面风格</th>
	<td><select name="styleidnew">
	<option value="">- 使用默认 -</option>
	<?=$styleselect?></select></td>
	</tr>

	<tr>
	<th>每页主题数</th>
	<td><select name="tppnew">
	<option value="0" <?=$tppchecked['0']?>>- 使用默认 -</option>
	<option value="10" <?=$tppchecked['10']?>>10</option>
	<option value="20" <?=$tppchecked['20']?>>20</option>
	<option value="30" <?=$tppchecked['30']?>>30</option>
	</select></td>
	</tr>

	<tr>
	<th>每页帖数</th>
	<td><select name="pppnew">
	<option value="0" <?=$pppchecked['0']?>>- 使用默认 -</option>
	<option value="5" <?=$pppchecked['5']?>>5</option>
	<option value="10" <?=$pppchecked['10']?>>10</option>
	<option value="15" <?=$pppchecked['15']?>>15</option>
	</select></td>
	</tr>

	<tr>
	<th>签名显示设置</th>
	<td><select name="ssnew">
	<option value="2" <?=$sschecked['2']?>>- 使用默认 -</option>
	<option value="1" <?=$sschecked['1']?>>显示签名</option>
	<option value="0" <?=$sschecked['0']?>>不显示签名</option>
	</select></td>
	</tr>
	<tr>
	<th>头像显示设置</th>
	<td><select name="sanew">
	<option value="2" <?=$sachecked['2']?>>- 使用默认 -</option>
	<option value="1" <?=$sachecked['1']?>>显示头像</option>
	<option value="0" <?=$sachecked['0']?>>不显示头像</option>
	</select></td>
	</tr>
	<tr>
	<th>图片显示设置<br /><em>包括上传的附件图片和 [img] 代码图片</em></th>
	<td><select name="sinew">
	<option value="2" <?=$sichecked['2']?>>- 使用默认 -</option>
	<option value="1" <?=$sichecked['1']?>>显示图片</option>
	<option value="0" <?=$sichecked['0']?>>不显示图片</option>
	</select></td>
	</tr>

	<tr>
	<th>编辑器模式</th>
	<td><select name="editormodenew">
	<option value="2" <?=$emcheck['2']?>>- 使用默认 -</option>
	<option value="0" <?=$emcheck['0']?>>Discuz! 代码模式</option>
	<option value="1" <?=$emcheck['1']?>>所见即所得模式</option>
	</select></td>
	</tr>

	<tr>
	<th>时差设定</th>
	<td>
	<select name="timeoffsetnew">
	<option value="9999" <?=$toselect['9999']?>>- 使用默认 -</option>
	<option value="-12" <?=$toselect['-12']?>>(GMT -12:00) Eniwetok, Kwajalein</option>
	<option value="-11" <?=$toselect['-11']?>>(GMT -11:00) Midway Island, Samoa</option>
	<option value="-10" <?=$toselect['-10']?>>(GMT -10:00) Hawaii</option>
	<option value="-9" <?=$toselect['-9']?>>(GMT -09:00) Alaska</option>
	<option value="-8" <?=$toselect['-8']?>>(GMT -08:00) Pacific Time (US &amp; Canada), Tijuana</option>
	<option value="-7" <?=$toselect['-7']?>>(GMT -07:00) Mountain Time (US &amp; Canada), Arizona</option>
	<option value="-6" <?=$toselect['-6']?>>(GMT -06:00) Central Time (US &amp; Canada), Mexico City</option>
	<option value="-5" <?=$toselect['-5']?>>(GMT -05:00) Eastern Time (US &amp; Canada), Bogota, Lima, Quito</option>
	<option value="-4" <?=$toselect['-4']?>>(GMT -04:00) Atlantic Time (Canada), Caracas, La Paz</option>
	<option value="-3.5" <?=$toselect['-3.5']?>>(GMT -03:30) Newfoundland</option>
	<option value="-3" <?=$toselect['-3']?>>(GMT -03:00) Brassila, Buenos Aires, Georgetown, Falkland Is</option>
	<option value="-2" <?=$toselect['-2']?>>(GMT -02:00) Mid-Atlantic, Ascension Is., St. Helena</option>
	<option value="-1" <?=$toselect['-1']?>>(GMT -01:00) Azores, Cape Verde Islands</option>
	<option value="0"  <?=$toselect['0']?>>(GMT) Casablanca, Dublin, Edinburgh, London, Lisbon, Monrovia</option>
	<option value="1" <?=$toselect['1']?>>(GMT +01:00) Amsterdam, Berlin, Brussels, Madrid, Paris, Rome</option>
	<option value="2" <?=$toselect['2']?>>(GMT +02:00) Cairo, Helsinki, Kaliningrad, South Africa</option>
	<option value="3" <?=$toselect['3']?>>(GMT +03:00) Baghdad, Riyadh, Moscow, Nairobi</option>
	<option value="3.5" <?=$toselect['3.5']?>>(GMT +03:30) Tehran</option>
	<option value="4" <?=$toselect['4']?>>(GMT +04:00) Abu Dhabi, Baku, Muscat, Tbilisi</option>
	<option value="4.5" <?=$toselect['4.5']?>>(GMT +04:30) Kabul</option>
	<option value="5" <?=$toselect['5']?>>(GMT +05:00) Ekaterinburg, Islamabad, Karachi, Tashkent</option>
	<option value="5.5" <?=$toselect['5.5']?>>(GMT +05:30) Bombay, Calcutta, Madras, New Delhi</option>
	<option value="5.75" <?=$toselect['5.75']?>>(GMT +05:45) Katmandu</option>
	<option value="6" <?=$toselect['6']?>>(GMT +06:00) Almaty, Colombo, Dhaka, Novosibirsk</option>
	<option value="6.5" <?=$toselect['6.5']?>>(GMT +06:30) Rangoon</option>
	<option value="7" <?=$toselect['7']?>>(GMT +07:00) Bangkok, Hanoi, Jakarta</option>
	<option value="8" <?=$toselect['8']?>>(GMT +08:00) Beijing, Hong Kong, Perth, Singapore, Taipei</option>
	<option value="9" <?=$toselect['9']?>>(GMT +09:00) Osaka, Sapporo, Seoul, Tokyo, Yakutsk</option>
	<option value="9.5" <?=$toselect['9.5']?>>(GMT +09:30) Adelaide, Darwin</option>
	<option value="10" <?=$toselect['10']?>>(GMT +10:00) Canberra, Guam, Melbourne, Sydney, Vladivostok</option>
	<option value="11" <?=$toselect['11']?>>(GMT +11:00) Magadan, New Caledonia, Solomon Islands</option>
	<option value="12" <?=$toselect['12']?>>(GMT +12:00) Auckland, Wellington, Fiji, Marshall Island</option>
	</select></td>
	</tr>

	<tr>
	<th>时间格式</th>
	<td>
	<label><input type="radio" value="0" name="timeformatnew" <?=$tfcheck['0']?> />默认 &nbsp;</label>
	<label><input type="radio" value="1" name="timeformatnew" <?=$tfcheck['1']?> />12 小时 &nbsp;</label>
	<label><input type="radio" value="2" name="timeformatnew" <?=$tfcheck['2']?> />24 小时</label></td>
	</tr>

	<tr>
	<th>日期格式</th>
	<td>
	<select name="dateformatnew">
	<option value="0" <?=$dfcheck['0']?>>默认</option><? if(is_array($dateformatlist)) { foreach($dateformatlist as $key => $value) { ?><option value="<?=$key?>" <?=$dfcheck[$key]?>><?=$value?></option><? } } ?></select>
	</td>
	</tr>

	<tr>
	<th>短消息提示音</th>
	<td><label><input type="radio" value="0" name="pmsoundnew" <?=$pscheck['0']?> />无 &nbsp;</label>
	<label><input type="radio" value="1" name="pmsoundnew" <?=$pscheck['1']?> /><a href="images/sound/pm_1.wav">#1</a> &nbsp;</label>
	<label><input type="radio" value="2" name="pmsoundnew" <?=$pscheck['2']?> /><a href="images/sound/pm_2.wav">#2</a> &nbsp;</label>
	<label><input type="radio" value="3" name="pmsoundnew" <?=$pscheck['3']?> /><a href="images/sound/pm_3.wav">#3</a></label></td>
	</tr>

	<? if($uc['addfeed'] && $ucappopen['UCHOME']) { ?>
		<tr>
		<th>加入事件设置</th>
		<td>
		<label><input type="radio" value="0" name="customaddfeednew" onclick="$('customaddfeed').style.display = 'none';" <?=$defaultcheck?>/>默认 &nbsp;</label>
		<label><input type="radio" name="customaddfeednew" onclick="$('customaddfeed').style.display = '';" <?=$customcheck?>/>自定义 &nbsp;</label><br />
		<div id="customaddfeed" style="display: <?=$showfeedcheck?>">
			<label><input type="checkbox" name="addfeed[1]" value="1" <?=$feedchecks['1']?>/> 普通主题</label><br />
			<label><input type="checkbox" name="addfeed[2]" value="1" <?=$feedchecks['2']?>/> 特殊主题</label><br />
			<label><input type="checkbox" name="addfeed[3]" value="1" <?=$feedchecks['3']?>/> 参与/回复主题</label>
		</div>
		</td></tr>
	<? } ?>

	<tr>
	<th>其他选项</th>
	<td>
	<? if($allowinvisible) { ?>
		<label><input type="checkbox" name="invisiblenew" value="1" <?=$invisiblechecked?> /> 在线列表中隐身</label><br />
	<? } ?>
	<label><input type="checkbox" name="showemailnew" value="1" <?=$emailchecked?> /> Email 地址可见</label><br />
	<label><input type="checkbox" name="newsletternew" value="1" <?=$newschecked?> /> 同意接收论坛通知 (Email 或短消息)</label><br />
	</td></tr>

<? } elseif($typeid == 6) { ?>

	<tr>
	<th valign="top"><div style="text-align: center;"><? echo discuz_uc_avatar($discuz_uid); ?></div></th>
	<td>
	<?=$uc_avatarflash?>
	</td>
	</tr>

<? } if($typeid != 6) { ?>
	<tr>
		<th>&nbsp;</th>
		<td><button type="submit" class="submit" name="editsubmit" id="editsubmit" value="true">提交</button></td>
	</tr>
<? } ?>
</table>
</div>
</form>
</td></tr></table>
	</div>
	<div class="side"><div>
<h2>个人管理</h2>
<ul>
	<li><h3><a href="###" onclick="pmwin('open')">短消息</a></h3></li>
	<? if($BASESCRIPT == 'my.php') { ?>
		<li class="side_on">
			<h3>我的</h3>
			<ul>
				<li<? if(in_array($item, array('threads', 'posts'))) { ?> class="current"<? } ?>><a href="my.php?item=threads<?=$extrafid?>">我的话题</a></li>
				<li<? if($item == 'favorites') { ?> class="current"<? } ?>><a href="my.php?item=favorites&amp;type=thread<?=$extrafid?>">我的收藏</a></li>
				<li<? if($item == 'subscriptions') { ?> class="current"<? } ?>><a href="my.php?item=subscriptions&amp;type=forum<?=$extrafid?>">我的订阅</a></li>
				<li<? if($item == 'grouppermission') { ?> class="current"<? } ?>><a href="my.php?item=grouppermission">我的权限</a></li>
				<li<? if($item == 'polls') { ?> class="current"<? } ?>><a href="my.php?item=polls&amp;type=poll<?=$extrafid?>">我的投票</a></li>
				<li<? if(in_array($item, array('tradestats', 'selltrades', 'buytrades', 'tradethreads'))) { ?> class="current"<? } ?>><a href="my.php?item=tradestats<?=$extrafid?>">我的商品</a></li>
				<li<? if($item == 'reward') { ?> class="current"<? } ?>><a href="my.php?item=reward&amp;type=stats<?=$extrafid?>">我的悬赏</a></li>
				<li<? if($item == 'activities') { ?> class="current"<? } ?>><a href="my.php?item=activities&amp;type=orig<?=$extrafid?>">我的活动</a></li>
				<li<? if($item == 'debate') { ?> class="current"<? } ?>><a href="my.php?item=debate&amp;type=orig<?=$extrafid?>">我的辩论</a></li>
				<? if($videoopen) { ?>
					<li<? if($item == 'video') { ?> class="current"<? } ?>><a href="my.php?item=video&amp;type=orig<?=$extrafid?>">我的视频</a></li>
				<? } ?>
				<li<? if($item == 'buddylist') { ?> class="current"<? } ?>><a href="my.php?item=buddylist&amp;<?=$extrafid?>">我的好友</a></li>
				<? if($ucappopen['UCHOME']) { ?>
					<li><a href="<?=$uchomeurl?>/space.php?uid=<?=$discuz_uid?>" target="_blank">我的空间</a></li>
				<? } elseif($ucappopen['XSPACE']) { ?>
					<li><a href="<?=$xspaceurl?>/?uid-<?=$discuz_uid?>" target="_blank">我的空间</a></li>
				<? } ?>
			</ul>
		</li>
	<? } else { ?>
		<li><h3><a href="my.php">我的</a></h3></li>
	<? } ?>
	<? if($BASESCRIPT == 'memcp.php') { ?>
		<li class="side_on">
			<h3>控制面板</h3>
			<ul>
			<li<? if(!$action) { ?> class="current"<? } ?>><a href="memcp.php">控制面板首页</a></li>
			<li<? if($action == 'profile') { ?> class="current"<? } ?>><a href="memcp.php?action=profile">编辑个人资料</a></li>
			<? if($exchangestatus || $transferstatus || $ec_ratio) { ?>
				<li<? if($action == 'credits' && in_array($operation, array('exchange', 'transfer', 'addfunds'))) { ?> class="current"<? } ?>><a href="memcp.php?action=credits">积分交易</a></li>
			<? } ?>
			<li<? if($action == 'creditslog' && in_array($operation, array('creditslog', 'paymentlog', 'incomelog', 'rewardpaylog', 'rewardincomelog'))) { ?> class="current"<? } ?>><a href="memcp.php?action=creditslog">积分记录</a></li>
			<? if($allowmultigroups) { ?>
				<li<? if($action == 'usergroups') { ?> class="current"<? } ?>><a href="memcp.php?action=usergroups">公众用户组</a></li>
			<? } ?>
			</ul>
		</li>
	<? } else { ?>
		<li><h3><a href="memcp.php">控制面板</a></h3></li>
	<? } ?>
	<? if($medalstatus) { ?>
		<? if($BASESCRIPT == 'medal.php') { ?>
			<li class="side_on">
				<h3>勋章</h3>
				<ul>
					<li<? if(!$action) { ?> class="current"<? } ?>><a href="medal.php">勋章列表</a></li>
					<li<? if($action == 'log') { ?> class="current"<? } ?>><a href="medal.php?action=log">勋章记录</a></li>
				</ul>
			</li>
		<? } else { ?>
			<li><h3><a href="medal.php">勋章</a></h3></li>
		<? } ?>
	<? } ?>
	<? if($regstatus > 1) { ?>
		<? if($BASESCRIPT == 'invite.php') { ?>
			<li class="side_on">
				<h3>邀请注册</h3>
				<ul>
					<li<? if($action == 'buyinvite') { ?> class="current"<? } ?>><a href="invite.php?action=buyinvite">获得邀请码</a></li>
					<li<? if(in_array($action, array('availablelog', 'invalidlog', 'usedlog', 'sendlog'))) { ?> class="current"<? } ?>><a href="invite.php?action=availablelog">邀请记录</a></li>
				</ul>
			</li>
		<? } else { ?>
			<li><h3><a href="invite.php">邀请注册</a></h3></li>
		<? } ?>
	<? } ?>
	</ul>

</ul>

</div>

<div class="credits_info">
	<h2>积分概况</h2>
	<ul>
		<li>积分: <?=$credits?></li><? if(is_array($extcredits)) { foreach($extcredits as $id => $credit) { ?><li>
			<? if($id == $creditstrans) { ?>
			<?=$credit['title']?>: <span style="font-weight: bold;"><?=$GLOBALS['extcredits'.$id]?></span> <?=$credit['unit']?>
			<? } else { ?>
			<?=$credit['title']?>: <?=$GLOBALS['extcredits'.$id]?> <?=$credit['unit']?>
			<? } ?>
		</li><? } } ?></ul>
</div>
</div>
</div>
</div><? if(!empty($jsmenu['2'])) { ?>
	<ul class="popupmenu_popup headermenu_popup" id="memcp_menu" style="display: none">
		<li><a href="memcp.php">控制面板首页</a></li>
		<li><a href="memcp.php?action=profile">编辑个人资料</a></li>
		<? if($exchangestatus || $transferstatus || $ec_ratio) { ?>
			<li><a href="memcp.php?action=credits">积分交易</a></li>
		<? } ?>
		<li><a href="memcp.php?action=creditslog">积分记录</a></li>
		<li><a href="memcp.php?action=usergroups">公众用户组</a></li>
		<? if($medalstatus) { ?>
			<li><a href="medal.php">勋章</a></li>
		<? } ?>
		<? if($creditspolicy['promotion_visit'] || $creditspolicy['promotion_register']) { ?>
			<li><a href="memcp.php">访问推广</a></li>
		<? } ?>
	</ul>
<? } if(!empty($plugins['jsmenu'])) { ?>
	<ul class="popupmenu_popup headermenu_popup" id="plugin_menu" style="display: none"><? if(is_array($plugins['jsmenu'])) { foreach($plugins['jsmenu'] as $module) { ?>	     <? if(!$module['adminid'] || ($module['adminid'] && $adminid > 0 && $module['adminid'] >= $adminid)) { ?>
	     <li><?=$module['url']?></li>
	     <? } ?>
	<? } } ?></ul>
<? } if(!empty($jsmenu['3'])) { ?>
	<ul class="popupmenu_popup headermenu_popup" id="stats_menu" style="display: none">
		<li><a href="stats.php">基本概况</a></li>
		<? if($statstatus) { ?>
			<li><a href="stats.php?type=views">流量统计</a></li><li><a href="stats.php?type=agent">客户软件</a></li><li><a href="stats.php?type=posts">发帖量记录</a></li>
		<? } ?>
		<li><a href="stats.php?type=forumsrank">版块排行</a></li><li><a href="stats.php?type=threadsrank">主题排行</a></li><li><a href="stats.php?type=postsrank">发帖排行</a></li><li><a href="stats.php?type=creditsrank">积分排行</a></li>
		<li><a href="stats.php?type=trade">交易排行</a></li>
		<? if($oltimespan) { ?><li><a href="stats.php?type=onlinetime">在线时间</a></li><? } ?>
		<li><a href="stats.php?type=team">管理团队</a></li>
		<? if($modworkstatus) { ?><li><a href="stats.php?type=modworks">管理统计</a></li><? } ?>
	</ul>
<? } if($discuz_uid && $jsmenu['4']) { ?>
	<ul class="popupmenu_popup headermenu_popup" id="my_menu" style="display: none">
		<li><a href="my.php?item=threads">我的话题</a></li>
		<li><a href="my.php?item=favorites&amp;type=thread">我的收藏</a></li>
		<li><a href="my.php?item=subscriptions">我的订阅</a></li>
		<li><a href="my.php?item=grouppermission">我的权限</a></li>
		<li><a href="my.php?item=polls&amp;type=poll">我的投票</a></li>
		<li><a href="my.php?item=tradestats">我的商品</a></li>
		<li><a href="my.php?item=reward&amp;type=stats">我的悬赏</a></li>
		<li><a href="my.php?item=activities&amp;type=orig&amp;ended=no">我的活动</a></li>
		<li><a href="my.php?item=debate&amp;type=debate">我的辩论</a></li>
		<? if($videoopen) { ?>
			<li><a href="my.php?item=video">我的视频</a></li>
		<? } ?>
		<li><a href="my.php?item=buddylist">我的好友</a></li>
		<? if($ucappopen['UCHOME']) { ?>
			<li><a href="<?=$uchomeurl?>/space.php?uid=<?=$discuz_uid?>" target="_blank">我的空间</a></li>
		<? } elseif($ucappopen['XSPACE']) { ?>
			<li><a href="<?=$xspaceurl?>/?uid-<?=$discuz_uid?>" target="_blank">我的空间</a></li>
		<? } ?>
	</ul>
<? } if($discuz_uid) { ?>
	<ul class="popupmenu_popup" id="viewpro_menu" style="display: none">
		<li class="popavatar"><? echo discuz_uc_avatar($discuz_uid, 'small');; ?></li>
		<li class="popuser"><a href="space.php?uid=<?=$discuz_uid?>">我的资料</a></li>
		<li class="poplink">
		<? if($ucappopen['UCHOME']) { ?>
			<a href="<?=$uchomeurl?>/space.php?uid=<?=$discuz_uid?>" target="_blank">我的空间</a>
		<? } elseif($ucappopen['XSPACE']) { ?>
			<a href="<?=$xspaceurl?>/?uid-<?=$discuz_uid?>" target="_blank">我的空间</a>
		<? } else { ?>
			我的空间
		<? } ?>
		</li>
	</ul>
<? } if($admode && empty($insenz['hardadstatus']) && !empty($advlist)) { ?>
	<div class="ad_footerbanner" id="ad_footerbanner1"><?=$advlist['footerbanner1']?></div><div class="ad_footerbanner" id="ad_footerbanner2"><?=$advlist['footerbanner2']?></div><div class="ad_footerbanner" id="ad_footerbanner3"><?=$advlist['footerbanner3']?></div>
<? } else { ?>
	<div id="ad_footerbanner1"></div><div id="ad_footerbanner2"></div><div id="ad_footerbanner3"></div>
<? } ?>

<div id="footer">
	<div class="wrap">
		<div id="footlinks">
			<p>当前时区 GMT<?=$timenow['offset']?>, 现在时间是 <?=$timenow['time']?><? if($icp) { ?> <a href="http://www.miibeian.gov.cn/" target="_blank"><?=$icp?></a><? } ?></p>
			<p>
				<a href="member.php?action=clearcookies&amp;formhash=<?=FORMHASH?>">清除 Cookies</a>
				- <a href="mailto:<?=$adminemail?>">联系我们</a> - <a href="<?=$siteurl?>" target="_blank"><?=$sitename?></a>
				<? if($archiverstatus) { ?> - <a href="archiver/" target="_blank">Archiver</a><? } ?>
				<? if($wapstatus) { ?> - <a href="wap/" target="_blank">WAP</a><? } ?>
				- <span class="scrolltop" onclick="window.scrollTo(0,0);">TOP</span>
				<? if(!empty($stylejumpstatus)) { ?>
					- <span id="styleswitcher" class="dropmenu" onmouseover="showMenu(this.id)">界面风格</span>
					<script type="text/javascript">
					function setstyle(styleid) {
					<? if(CURSCRIPT == 'forumdisplay') { ?>
						location.href = 'forumdisplay.php?fid=<?=$fid?>&page=<?=$page?>&styleid=' + styleid;
					<? } elseif(CURSCRIPT == 'viewthread') { ?>
						location.href = 'viewthread.php?tid=<?=$tid?>&page=<?=$page?>&styleid=' + styleid;
					<? } else { ?>
						location.href = '<?=$indexname?>?styleid=' + styleid;
					<? } ?>
					}
					</script>
					<div id="styleswitcher_menu" class="popupmenu_popup" style="display: none;">
					<ul><? if(is_array($stylejump)) { foreach($stylejump as $id => $name) { ?><li<? if($id == $styleid) { ?> class="current"<? } ?>><a href="###" onclick="setstyle(<?=$id?>)"><?=$name?></a></li><? } } ?></ul>
					</div>
				<? } ?>
			</p>
		</div>

		<a href="http://www.discuz.net" target="_blank" title="Powered by Discuz!"><img src="<?=IMGDIR?>/discuz_icon.gif" border="0" alt="Discuz!" /></a>
		<p id="copyright">
			Powered by <strong><a href="http://www.discuz.net" target="_blank">Discuz!</a></strong> <em><?=$version?></em><? if(!empty($boardlicensed)) { ?> <a href="http://license.comsenz.com/?pid=1&amp;host=<?=$_SERVER['HTTP_HOST']?>" target="_blank">Licensed</a><? } ?>
			&copy; 2001-2008 <a href="http://www.comsenz.com" target="_blank">Comsenz Inc.</a>
		</p><? updatesession(); if(debuginfo()) { ?>
			<p id="debuginfo">Processed in <?=$debuginfo['time']?> second(s), <?=$debuginfo['queries']?> queries<? if($gzipcompress) { ?>, Gzip enabled<? } ?>.</p>
		<? } ?>
	</div>
</div>
<? if($_DCACHE['settings']['frameon'] && in_array(CURSCRIPT, array('index', 'forumdisplay', 'viewthread')) && $_DCOOKIE['frameon'] == 'yes') { ?>
	<script src="include/javascript/iframe.js" type="text/javascript"></script>
<? } output(); ?></body>
</html>